/**
 * Copyright 2021 Inc.
 **/
package com.myz.rabbitmq.order.controller;

import com.myz.rabbitmq.order.producer.RabbitProducer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author maoyz0621 on 2021/6/8
 * @version v1.0
 */
@RestController
public class OrderController {

    @Resource
    RabbitProducer rabbitProducer;

    @RequestMapping("/send")
    public String send() {
        rabbitProducer.sendMsgVoid("asdasdas");
        return "OK";
    }
}